#include<stdio.h>
int main() {
	int count,i;
	scanf("%d", &i);

	for (count = 0; i != 25; count++)
	{
		scanf("%d", &i);
		if (i > 25)
			printf("Wrong!Too high!");
		if (i < 25)
			printf("Wrong!Too low!");
	}
	printf("Right!\nYou guess %d times\nThe game is over!", count);
}